home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2005 November / WNnov2005.iso / Windows / Indispensables / Movie Collection / MovieCollection5403.exe / {app} / web / FreeBrowser / film_medias.xsl next >
Extensible Markup Language  |  2005-08-05  |  2KB  |  57 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:output method="html" media-type="text/html; charset=ISO-8859-1"/>
  4.  
  5. <xsl:template match="/">
  6.    <html>
  7.       <body>
  8.                   
  9.          <a href="/mc">Nouvelle recherche</a> :: 
  10.          <a>
  11.             <xsl:attribute name="href">../mc?action=film&idx=<xsl:value-of select="//column[@field='idx']/@value"/></xsl:attribute>
  12.             Fiche Film
  13.          </a>
  14.          
  15.          <h3>
  16.              <xsl:value-of select="//column[@field='nom']/@value"/>
  17.             <xsl:if test="not(//column[@field='originaltitle']/@value='')">
  18.                (<xsl:value-of select="//column[@field='originaltitle']/@value"/>)
  19.             </xsl:if>
  20.          </h3><br />
  21.  
  22.          <table border="1" cellpadding="4" cellspacing="0">
  23.              <tr>
  24.                  <td valign="top"><b>Fichiers MΘdias</b></td>
  25.              </tr>
  26.             <xsl:if test="not(count(//extmedia)='0')">
  27.                <xsl:for-each select="//extmedia">
  28.                   <tr><td>
  29.                      <a>
  30.                         <xsl:attribute name="href">../mc?action=play_media&idx=<xsl:value-of select="@idx"/></xsl:attribute>
  31.                         <xsl:value-of select="@filename"/>
  32.                      </a>
  33.                   </td></tr>
  34.                </xsl:for-each>
  35.             </xsl:if>
  36.             <xsl:if test="count(//extimg)='0'">
  37.                 <tr>
  38.                     <td valign="top">Pas de fichier</td>
  39.                 </tr>
  40.             </xsl:if>
  41.          </table>
  42.  
  43.          <div>...</div>
  44.          <a href="/mc">Nouvelle recherche</a> :: 
  45.          <a>
  46.             <xsl:attribute name="href">../mc?action=film&idx=<xsl:value-of select="//column[@field='idx']/@value"/></xsl:attribute>
  47.             Fiche Film
  48.          </a>
  49.                
  50.       </body>
  51.    </html>
  52. </xsl:template>
  53.  
  54.  
  55.  
  56. </xsl:stylesheet>
  57.